<!-- 菜单表单专用 -->
@if(isset($title))
<h6>{{$title}}</h6>
@endif
<div class="row clearfix">
        <div class="col-sm-12">
            <div class="form-group">
                <div class="form-line">
                    <select name="{{$name}}" class="form-control">
                        <option value="0">└───根菜单</option>
                        @forelse($selectData as $item)
                            <option @if(isset($default)&&$item->id==$default) selected @endif value="{{$item->id}}">{!!str_repeat("&nbsp;",($item->level-1)*10)!!}└───{{$item->menu_name}}</option>
                        @empty
                            <option value="">组件未收到数据</option>
                        @endforelse
                    </select>
                </div>
            </div>
        </div>
</div>